package com.devframe.sysbase.model.base;

import java.io.Serializable;

import com.devframe.sysbase.model.*;

/**
 * This is an object that contains data related to the T_SYS_UNKNOWN_URL table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="T_SYS_UNKNOWN_URL"
 */

public abstract class BaseTSysUnKnownUrl  implements Serializable {

	public static String REF = "TSysUnKnownUrl";
	public static String PROP_CREATE_USER = "createUser";
	public static String PROP_CREATE_TIME = "createTime";
	public static String PROP_URL = "url";


	// constructors
	public BaseTSysUnKnownUrl () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTSysUnKnownUrl (java.lang.String url) {
		this.setUrl(url);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String url;

	// fields
	private java.lang.String createTime;
	private java.lang.String createUser;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="assigned"
     *  column="URL"
     */
	public java.lang.String getUrl () {
		return url;
	}

	/**
	 * Set the unique identifier of this class
	 * @param url the new ID
	 */
	public void setUrl (java.lang.String url) {
		this.url = url;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: CREATE_TIME
	 */
	public java.lang.String getCreateTime () {
		return createTime;
	}

	/**
	 * Set the value related to the column: CREATE_TIME
	 * @param createTime the CREATE_TIME value
	 */
	public void setCreateTime (java.lang.String createTime) {
		this.createTime = createTime;
	}



	/**
	 * Return the value associated with the column: CREATE_USER
	 */
	public java.lang.String getCreateUser () {
		return createUser;
	}

	/**
	 * Set the value related to the column: CREATE_USER
	 * @param createUser the CREATE_USER value
	 */
	public void setCreateUser (java.lang.String createUser) {
		this.createUser = createUser;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof TSysUnKnownUrl)) return false;
		else {
			TSysUnKnownUrl tSysUnKnownUrl = (TSysUnKnownUrl) obj;
			if (null == this.getUrl() || null == tSysUnKnownUrl.getUrl()) return false;
			else return (this.getUrl().equals(tSysUnKnownUrl.getUrl()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getUrl()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getUrl().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}